<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <ul>
      <!-- <li>手机</li> -->
    </ul>
    <script type="text/javascript" src="../js/ajax.js"></script>
    <script type="text/javascript">
      ajax("get","../datas/typeList.json",true,function(res){
        console.log(res);
        var str = "";
        res.forEach(function(item){
          str+=`<li>${item.typeName}</li>`;
        })
        document.getElementsByTagName("ul")[0].innerHTML = str;
      })
      ajax2({
        url:'../datas/typeList.json',
        isAsync:true,
        method:"get",
        success:function(res){
          
        }
      })
    </script>
  </body>
</html>
